
object func_examples{
  def hello(name:String):String={
    "hello,${name}"
  }
}


object func_examples1 {
  def hello(name: String): String = {
    "hello "+name
  }

  hello("scala")
  hello("scala")

}

object Test {
  def main(args: Array[String]) {
    println( "Returned Value : " + addInt(5,7) );
  }
  def addInt( a:Int, b:Int ) : Int = {
    var sum:Int = 0
    sum = a + b

    return sum
  }
  var a=addInt(1,2)
}